package com.wkh.project.customer.service;

import com.wkh.project.model.form.customer.UpdateCustomerInfoForm;
import com.wkh.project.model.form.customer.UpdateWxPhoneForm;
import com.wkh.project.model.vo.customer.CustomerLoginVo;
import jakarta.servlet.http.HttpServletRequest;

public interface CustomerService {

    /**
     * 微信小程序登录
     * @param code
     * @param request
     * @return
     */
    String login(String code, HttpServletRequest request);

    /**
     * 获取登录信息
     * @param token
     * @return
     */
    CustomerLoginVo getCustomerLoginInfo(String token);

    /**
     * 获取登录信息
     * @param customerId
     * @return
     */
    CustomerLoginVo getCustomerInfo(Long customerId);

    Boolean updateWxPhoneNumber(UpdateWxPhoneForm updateWxPhoneForm);

    Boolean updateCustomerInfo(UpdateCustomerInfoForm updateCustomerInfoForm);
}
